package Practice18;

public class InvokeCalc {
    public static void main(String[] args) {
        invokeCalc(123,4124 ,(int a,int b)->{
            return a+b;
        });
    }

    public static void invokeCalc(int a,int b,Calculator calculator){
        int result = calculator.calc(a,b);
        System.out.println("结果是："+result);
    }
}
